﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="quan_tri_pool.ascx.cs" Inherits="Admin_Module_quan_tri_pool" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<telerik:RadAjaxManager OnAjaxRequest="Ajax_Request" ID="RadAjaxManager1" runat="server" 
    DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grd" />
            </UpdatedControls>
        </telerik:AjaxSetting>
       
        <telerik:AjaxSetting AjaxControlID="grd">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grd" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>

<telerik:RadWindowManager OnClientClose="Window_Close" ID="RadWindowManager1" runat="server" >
    <Windows>
        <telerik:RadWindow VisibleStatusbar="false" Width="800px" Height="600px" runat="server" ID="windows1"></telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function Window_Close() {
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
        }
    </script>
</telerik:RadCodeBlock>

<asp:Label runat="server" ID="lblMessage"></asp:Label>
<fieldset>

   <legend style="padding: 10px 20px 10px"><h3 style="color: #3333FF; font-size:large">Danh Sách Câu Hỏi Phỏng Vấn</h3></legend>
    <div style="text-align:center; font-size:larger"><asp:Label runat="server" ID="Label1"> </asp:Label></div>
  <table style="text-align:left; width:800px">
    <tr>
        <td style="width: 85%"></td>
        <td> <a href="/Admin/Form/Pool_Add.aspx" ><img src="/Image/add2.png" alt="Thêm mới câu hỏi" />Thêm Mới</a></td>
    </tr>
   </table>
    
    <telerik:RadGrid runat="server" Skin="WebBlue" GridLines="Horizontal"   AllowFilteringByColumn="True" AutoGenerateColumns="false" ID="grd">
        <MasterTableView>
            <Columns>
                <telerik:GridTemplateColumn HeaderText="" DataField="">
                    <ItemTemplate>
                        <a href="/Admin/Form/Pool_Add.aspx?id=<%#DataBinder.Eval(Container.DataItem,"PoolTopicID")%>">
                            <%# Eval("TopicContent")%>
                        </a>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="CreateDate" HeaderText="Ngày Tạo" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CreateIP" HeaderText="IP Người Tạo" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UserName" HeaderText="Người Tạo" ></telerik:GridBoundColumn>
                <telerik:GridCheckBoxColumn DataField="IsActive"  HeaderText="Hoạt động" ></telerik:GridCheckBoxColumn>
                <telerik:GridCheckBoxColumn DataField="IsTypical" HeaderText="Nổi bật" ></telerik:GridCheckBoxColumn>
                <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Xóa" >
                <ItemStyle Width="20px" />
                <ItemTemplate>
                    <asp:LinkButton OnClientClick="return ConfirmDelete()" runat="server" ID="btnDelete" CausesValidation="false" CommandArgument='<%# Eval("PoolTopicID") %>' OnClick="Pool_Delete" >Delete</asp:LinkButton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</fieldset>